]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Explicitly dispose all cairo contexts
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 7 Jan 2013 20:07:40 +0000 (15:07 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 8 Jan 2013 18:07:51 +0000 (13:07 -0500)
commit9548cd834156447ef8a36a038f0b48eb8992fa8b
tree17c9a47353bbd4790ebd1f9658f42ef94708cde9
parent8410fc38c913cd95dceec0bdfce81b3275392f41
js: Explicitly dispose all cairo contexts

Due to limitations and bugs in SpiderMonkey's GC, wrapper objects
for cairo contexts and similar may not get cleaned up immediately
after repainting, leading to leaking memory. Explicitly disposing
of such objects after they're not needed can clean up large portions
of memory for cairo surfaces.

https://bugzilla.gnome.org/show_bug.cgi?id=685513
js/gdm/loginDialog.js
js/ui/boxpointer.js
js/ui/dateMenu.js
js/ui/panel.js
js/ui/popupMenu.js
js/ui/separator.js
js/ui/switcherPopup.js